export function dateAddDays(dataStr, dayCount) {
  var strdate = dataStr; //日期字符串
  var isdate = new Date(strdate.replace(/-/g, "/"));  //把日期字符串转换成日期格式
  isdate = new Date((isdate / 1000 + (86400 * dayCount)) * 1000);  //日期加1天
  var pdate = isdate.getFullYear() + "-" + (isdate.getMonth() + 1) + "-" + (isdate.getDate());   //把日期格式转换成字符串

  return pdate;
}


export function dateAddDays2(isdate, dayCount) {
  isdate = new Date((isdate / 1000 + (86400 * dayCount)) * 1000);  //日期加1天
  var pdate = isdate.getFullYear() + "-" + (isdate.getMonth() + 1).toString().padStart(2, '0') + "-" + isdate.getDate().toString().padStart(2, '0');   //把日期格式转换成字符串
  return pdate;
}



export function dateAddDays3(isdate, dayCount) {
  isdate = new Date((isdate / 1000 + (86400 * dayCount)) * 1000);  //日期加1天
  // var pdate = isdate.getFullYear() + "-" + (isdate.getMonth() + 1) + "-" + (isdate.getDate());   //把日期格式转换成字符串
  return isdate;
}